function ExternalInterface(){this.methods=new Object();this._logLevel=null}ExternalInterface.prototype.addFct=function(a){this.methods[a]=""};ExternalInterface.prototype.logException=function(a,b){YServices.log.exception(a,true)};ExternalInterface.prototype.logError=function(a){YServices.log.error(a,true)};ExternalInterface.prototype.logDebug=function(a){YServices.log.debug(a,true)};ExternalInterface.prototype.logWarning=function(a){YServices.log.warn(a,true)};ExternalInterface.prototype.logInfo=function(a){YServices.log.info(a,true)};ExternalInterface.prototype.execFct=function(f,g,b){if("YEXTIFProxy" in window){var d=window.YEXTIFProxy.execute(f,g,b);return d}var a=null;if(f.substr(0,3)=="log"){if(!b&&!this._logLevel){this._logLevel=this.execFct("getLogLevel",null,true);if(!this._logLevel){this._logLevel=2}}if(this._logLevel){switch(f){case"logException","logError":if(this._logLevel<2){return}break;case"logWarning":if(this._logLevel<3){return}break;case"logInfo":if(this._logLevel<4){return}break;case"logDebug":if(this._logLevel<5){return}break}}}try{if(document.all||f in this.methods){if(document.all){if(g!=null){a=window.external[f](g)}else{a=window.external[f]()}}else{a=this.methods[f](g)}if(a){if(typeof a=="string"&&f!="getVersion"){if(window.YServices&&YServices.json){if(YServices.json.isJSON(a)){a=YServices.json.decode(a)}}else{if(!(yoono.json&&yoono.json.parse)){yoono.require(["yoono.json"])}if(yoono.json.isJSON(a)){a=yoono.json.parse(a)}}}}}else{if("logError"!=f&&"getLogLevel"!=f){this.logError(f+" does not exist in ExternalInterface")}}}catch(c){if(document.all&&c.message.indexOf("Badly formed JSON string")==0){}else{var e=(c.message!=null?"message : "+c.message+"\n\r\n\r":"")+(c.name!=null?"name : "+c.name+"\n\r\n\r":"")+(c.description!=null?"description : "+c.description+"\n\r\n\r":"")+(c.number!=null?"number : "+c.number+"\n\r\n\r":"")+(c.fileName!=null?"fileName :"+c.fileName+"\n\r\n\r":"")+(c.lineNumber!=null?"lineNumber :"+c.lineNumber+"\n\r\n\r":"")+(c.stack!=null?"stack :"+c.stack+"\n\r\n\r":"");if("log"!=f.substr(0,3)&&"getLogLevel"!=f){this.logError("execFct error: "+f+" failed : "+e)}}}return(a)};ExternalInterface.prototype.setClosing=function(){};function InternalInterface(){this.methods=new Object()}InternalInterface.prototype.logException=function(a,b){YServices.log.exception(a)};InternalInterface.prototype.logError=function(a){YServices.log.error(a,true)};InternalInterface.prototype.logDebug=function(a){YServices.log.debug(a,true)};InternalInterface.prototype.logWarning=function(a){YServices.log.warn(a,true)};InternalInterface.prototype.logInfo=function(a){YServices.log.info(a,true)};InternalInterface.prototype.execFct=function(a,b){if(a in this){return(this[a](b))}else{if(a!="logError"){this.logError(a+" does not exist in YINTIF")}else{alert(a+" does not exist in YINTIF")}}};